﻿using System.Diagnostics;
using System.Runtime.InteropServices;

namespace MaterialDesign3Demo.Domain;

public static class Link
{
    public static void OpenInBrowser(string? url)
    {
        if (url is not null && RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
        {
            Process.Start(new ProcessStartInfo(url) { UseShellExecute = true });
        }
    }
}
